home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The 640 MEG Shareware Studio 2
/
The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO
/
pascal
/
gifpasse.zip
/
NGIFER.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1989-02-27
|
2KB
|
70 lines
Program ngifer;
{ Steve Enns Feb.26 1989
Copyright 1989 Steve Enns All rights reserved.
Synergrafix - Graphical and Numerical Software
2425 Haultain Ave. Saskatoon, Sask. Canada S7J 1R2
GIF ENcoding for BGI graphics ( Demo Program )
This software is provided for unlimited use and
distribution EXCEPT for the following conditions:
- No fee is to be charged for the use or distribution
of this software, including any works which include
the source code or compiled form of this software.
- Any derived software or software which uses the source
code or compiled versions of this software must include
the source code of the derived software, and this notice.
- This software is to be distributed in the original
archived form, with the SAME name, GIFPASSE,
i.e. GIFPASSE.ZIP, GIFPASSE.ARC.
This software is provided without warranty of any kind,
express or implied. YOU, the user assume complete
responsibility for any and all incidental or consequential
damages arising out of the use of this program. Use
at your own risk.
This license is intended to encourage the distribution of
programs which include source code!
'GIF' and 'Graphics Interchange Format' are trademarks
of Compuserve, Inc., an H&R Block Company. }
uses dos,graph,ngif;
var gr,grm :integer;
r,b,g :colarray;
i :integer;
begin
gr:=detect;
initgraph(gr,grm,getenv('BGIDIR'));
for i:=0 to 200 do
begin
setcolor(random(getmaxcolor+1));
circle(random(getmaxx),random(getmaxy),random(getmaxy div 2));
end;
for i:=0 to 10 do begin
r[i]:=0; g[i]:=0; b[i]:=0
end;
if not engif('testout.gif',0,0,getmaxx,getmaxy,false,true,0,1,r,g,b) then
begin
closegraph;
writeln('NGIFER: Error: error during encoding or file write');
halt(1)
end;
closegraph;
writeln;
writeln('View TESTOUT.GIF with:');
writeln;
writeln(' DGIFER testout.gif command.');
writeln
end.